#ifndef I2C_H
#define I2C_H
int InitI2c(void);
int I2cWriteByte(unsigned char slaveAddr, unsigned char reg, unsigned char val);
int I2cReadByte(unsigned char slaveAddr, unsigned char reg, unsigned char * pval);
int I2cWriteBuffer(unsigned char slaveAddr, unsigned char *buf, int len);
int I2cReadWord(unsigned char slaveAddr, unsigned char reg, unsigned short * pval);
#endif

